<div class="page-content">
	<!-- BEGIN PAGE HEADER-->
	<div class="row">
		<div class="col-md-12">
			<!-- BEGIN PAGE TITLE & BREADCRUMB-->
			<h3 class="page-title">
			Home
			</h3>
			<!-- END PAGE TITLE & BREADCRUMB-->
		</div>
	</div>
	<!-- END PAGE HEADER-->
	<!-- BEGIN PAGE CONTENT-->

    <div class="row">
		<div class="col-md-12">
			<!-- BEGIN EXAMPLE TABLE PORTLET-->
			<div class="portlet box yellow">
				<div class="portlet-title">
					<div class="caption">
						<i class="fa fa-cogs"></i>New users
					</div>
				</div>
				<div class="portlet-body">
					<div class="table-responsive">
						<table class="table table-striped table-bordered table-hover">
						<thead>
						<tr>
							<th width="20%" >
								 Name
							</th>
							<th width="20%">
								 User name
							</th>
                            <th width="10%">
								 Gender
							</th>
							<th width="20%">
								 Email
							</th>
							<th width="15%">
								 Phone
							</th>
							<th width="15%">
								 Date add
							</th>
						</tr>
						</thead>
						<tbody>
                            <?php
                                foreach($last_user as $value)
                                {
                            ?>
    						<tr>
    							<td>
    								<?php echo $value['User']['name'] ?>
    							</td>
    							<td>
    								<?php echo $value['User']['username'] ?>
    							</td>
    							<td>
				                    <?php echo $value['User']['gender'] == 1 ? "Nam" : "Nữ"; ?>
    							</td>
    							<td>
    								<?php echo $value['User']['email'] ?>
    							</td>
    							<td>
    								<?php echo $value['User']['phone'] ?>
    							</td>
    							<td>
    								<?php echo $value['User']['created'] ?>
    							</td>
    
    						</tr>
                            <?php
                                }
                            ?>
						</tbody>
						</table>
					</div>
				</div>
			</div>
			<!-- END EXAMPLE TABLE PORTLET-->
		</div>
	</div>
    <div class="row">
		<div class="col-md-12">
			<!-- BEGIN EXAMPLE TABLE PORTLET-->
			<div class="portlet box blue">
				<div class="portlet-title">
					<div class="caption">
						<i class="fa fa-cogs"></i>New cart
					</div>
				</div>
				<div class="portlet-body">
					<div class="table-responsive">
						<table class="table table-striped table-bordered table-hover">
						<thead>
						<tr>
							<th width="20%" >
								 Cart id
							</th>
							<th width="20%">
								 Name user
							</th>
                            <th width="10%">
								 Number
							</th>
							<th width="20%">
								 Price
							</th>
							<th width="15%">
								 Discount
							</th>
							<th width="15%">
								 Date add
							</th>
						</tr>
						</thead>
						<tbody>
                            <?php
                                foreach($last_cart as $cart)
                                {
                            ?>
    						<tr>
    							<td>
    								<?php echo $cart['cart']['cart_id'] ?>
    							</td>
    							<td>
    								<?php echo $cart['users']['name'] ?>
    							</td>
    							<td>
				                    <?php echo $cart['custom']['number_product'] ?>
    							</td>
    							<td>
    								<?php echo number_format($cart['custom']['sum_price'],0,',','.') ?>
    							</td>
    							<td>
    								<?php echo number_format($cart['custom']['sum_discount'],0,',','.') ?>
    							</td>
    							<td>
    								<?php echo $cart['cart']['date_added'] ?>
    							</td>
    
    						</tr>
                            <?php
                                }
                            ?>
						</tbody>
						</table>
					</div>
				</div>
			</div>
			<!-- END EXAMPLE TABLE PORTLET-->
		</div>
	</div>
	<!-- END PAGE CONTENT-->
</div>